package com.tj.pystandard.tjcustomer.student.controller;

import com.tj.pystandard.tjcustomer.common.vo.ResponseVo;
import com.tj.pystandard.tjcustomer.student.clients.ApiClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tangjing
 * @date 2021/09/30 16:26
 */
@RestController
@RequestMapping("/customer")
@Api(tags = "customer接口")
@Slf4j
public class TestTwoController {

    @Resource
    private ApiClient apiClient;


    @PostMapping("/test")
    @ApiOperation(value = "查询简单输出")
    public ResponseVo<String> pageBanner() {
        return ResponseVo.content("简单输出");
    }

    @PostMapping("/two")
    @ApiOperation(value = "customer调用api模块接口")
    public ResponseVo<String> twoTest() {
        log.info("customer调用api模块接口");
        log.error("commit1");
        return apiClient.serviceTwo();
    }






}
